import GLTFLoader from "three-gltf-loader";

const Loader = {
  GLTFLoader(url) {
    return new Promise((resolve, reject) => {
      new GLTFLoader().load(url, gltf => {
        resolve(gltf);
      }, null, err => {
        reject(err);
      })
    })
  }
}

export default Loader;